package com.hhly;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by dell on 2017/9/1.
 */
@RefreshScope
@RestController
public class TestController {

    @Value("${url}")
    String url;

    @RequestMapping("/hi")
    String hello() {
        return "url=" + url;
    }
}
